package com.sz.admin.ai.config;

import org.springframework.ai.embedding.EmbeddingModel;
import org.springframework.ai.ollama.OllamaEmbeddingModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class EmbeddingModelConfig {

    @Bean
    @Primary
    public EmbeddingModel customEmbeddingModel(OllamaEmbeddingModel ollama) {
        // 自定义选择逻辑
        
        
        return ollama;
    }
}